package com.project.biz;

import com.baomidou.mybatisplus.extension.service.IService;
import com.project.entity.CmsOrderInvoice;
import com.project.pojo.model.CreateOrderInvoiceModel;

/**
 * @Description: 发票业务层接口类
 * @Author: zhuchi
 * @CreateDate: 2020/10/16 22:57
 * @Version: 1.0
 */
public interface CmsOrderInvoiceBiz extends IService<CmsOrderInvoice> {

    /**
     * 添加订单发票信息
     * @param orderInvoiceModel
     * @param orderId
     * @return
     */
    int addOrderInvoice(CreateOrderInvoiceModel orderInvoiceModel, Long orderId);

    /**
     * 根据订单号获取发票信息
     * @param orderId
     * @return
     */
    CmsOrderInvoice getInvoiceByOrderId(Long orderId);

}
